exports.onCreateBabelConfig = ({ actions, stage, loaders }) => {
  actions.setBabelPlugin({
    name: `@babel/plugin-proposal-decorators`,
    options: { legacy: true },
  });
  // if (stage === 'build-html' || stage === 'develop-html') {
  //   actions.setWebpackConfig({
  //     module: {
  //       rules: [
  //         {
  //           test: /bricks/,
  //           use: loaders.null(),
  //         },
  //       ],
  //     },
  //   });
  // }
};
